﻿using Micro.Extensions.DDD.Domain;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Module.Test.Domain.Models
{
    /// <summary>
    /// 实体
    /// </summary>
    [SugarTable("custom")]
    public class Custom : Entity<long>
    {
        public Custom() { }
        public Custom(long id, string name, DateTime CreatedTime)
        {
            this.Id = id;
            this.Name = name;
            this.CreatedTime = CreatedTime;
        }

        [SugarColumn(IsPrimaryKey = true)] //设置主键
        public override long Id { get; protected set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }


        public DateTime CreatedTime { get; set; }
    }
}
